<!-- 升级包详情 -->
<template>
  <div class="vipboard-package-detail">
    <el-dialog
      :visible.sync="visible"
      :modal-append-to-body="false"
      :show-close="false"
      :modal="false"
      top="0"
      fullscreen
    >
      <i
        @click="close"
        class="jeicon jeicon-error pointer"
      />
      <div class="package-detail-body">
        <div class="item_wrp">
          <div>
            <h1>{{ data.MANAGER_BT }}</h1>
            <p class="time">
              更新时间: {{ data.MANAGER_UPDATE }}
            </p>
          </div>
          <div>
            <div
              v-html="data.MANAGER_ZTMS"
              class="detail_content"
            />
            <h3 style="margin-top: 20px;">
              更新内容如下
            </h3>
          </div>
          <div>
            <h3>优化改进</h3>
            <div
              v-html="data.MANAGER_OPTIMIZE"
              class="detail_content"
            />
          </div>
          <div>
            <h3>修复BUG</h3>
            <div
              v-html="data.MANAGER_REPAIR_BUG"
              class="detail_content"
            />
          </div>
          <button
            @click="close"
            type="button"
            class="el-button--primary el-button--medium el-button el-button-style"
          >
            <span>关  闭</span>
          </button>
        </div>
      </div>
    </el-dialog>
  </div>
</template>
<script>

export default {
  name: 'PackageDetail',
  props: {
    data: {
      type: Object,
      default: () => {},
    },
    visible: {
      type: Boolean,
      default: () => false,
    },
  },
  data() {
    return {
      index: 0,
    };
  },
  methods: {
    close() {
      this.$emit('close');
    },
  },
};
</script>
<style lang="scss" >
  .jeicon-error {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
  }
  .el-button-style{
    background: #2f6bcf;
    bottom: 20px;
    left:50%;
    border:none;
    position: fixed;
    transform: translate(-50%, 0);
  }
  .vipboard-package-detail{
    .package-detail-body{
      &::-webkit-scrollbar {
        display:none
      }
      width: 1250px;
      height:100%;
      overflow: auto;
      background: #ffffff;
      position: absolute;
      top:0;
      left:50%;
      margin-left:-625px;
      .item_wrp {
        padding: 20px 40px;
        padding-bottom: 80px;
        .time {
          color: #999999;
          font-size: 14px;
        }
        h3 {
          color: red;
        }
        > div {
          min-height: 100px;
          .detail_content {
            font-size: 14px;
            margin-top: 10px;
            white-space: pre-wrap;
          }
          &:not(:first-child) {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #f5f5f5;
          }
        }
      }
    }
    .el-dialog.is-fullscreen{
      background-color: #f0f2f5;
      .el-dialog__header{
          display: none;
      }
      .el-dialog__body{
          height: 100%;
          padding: 0 20px;
          background: #f0f2f5;
      }
      .el-dialog__close{
          position: fixed;
          right:20px;
          top:20px;
          font-size: 20px;
          cursor: pointer;
      }
      .el-dialog__close:hover{
          color: #2f6bcf;
      }
    }
  }
</style>
